import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:get/get.dart';
import 'package:simple_gradient_text/simple_gradient_text.dart';
import 'package:task_manager/app/core/utils/extensions.dart';

import '../../core/values/colors.dart';
import 'splash_controller.dart';

class SplashScreen extends GetView<SplashController> {
  final splashController = Get.put(SplashController());

  SplashScreen({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Image.asset(
                'assets/images/splash.gif',
                scale: 1.5,
              ),
              GradientText('你身边的待办管家', colors: const[
                Color.fromARGB(255, 189, 195, 199),
                Color.fromARGB(255, 44, 62, 80)
              ],
                style: TextStyle(
                    fontSize: 14.0.sp
                ),
              ),
              SizedBox(height: 2.0.wp,),
              SizedBox(height: 10.0.wp,),
              SpinKitFadingCube(
                color: purple.withOpacity(0.5),
                size: 40,
              )
            ],
          ),
        ));
  }
}
